import callApi from '../utils/request';
import {
  API_OIL_LIST,
  API_REFUEL_DETAIL,
  API_REFUEL,
  API_REFUEL_LIST,
} from '../constants/api';

export function queryRefuelList(params) {
  return callApi({
    api: API_REFUEL_LIST,
    params,
  });
}


export function queryOilList(params) {
  return callApi({
    api: API_OIL_LIST,
    params,
  });
}

export function queryRefuelDetail(params) {
  return callApi({
    api: API_REFUEL_DETAIL,
    params,
  });
}

export function doRefuel(params) {
  return callApi({
    api: API_REFUEL,
    params,
  });
}

